package contents.entities;

import java.util.List;

public class Teacher {
    private Integer teacherId;
    private String firstName;
    private String lastName;
    private List<Subject> subjects;
    private String username;

    public Teacher(Integer teacherId, String firstName, String lastName, String username) {
        this.teacherId = teacherId;
        this.firstName = firstName;
        this.lastName = lastName;
        this.username = username;
    }
    
    public Teacher(Integer teacherId, String firstName, String lastName, String username, List<Subject> subjects) {
        this(teacherId, firstName, lastName, username);
        this.subjects = subjects;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }
    
    public String getUsername() {
        return username;
    }

    public List<Subject> getSubjects() {
        return subjects;
    }
    
    public String getFullName() {
        return firstName + " " + lastName;
    }

    /*
     * For purpose of web service.
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /*
     * For purpose of web service.
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /*
     * For purpose of web service.
     */
    public void setSubjects(List<Subject> subjects) {
        this.subjects = subjects;
    }

    /*
     * For purpose of web service.
     */
    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    /*
     * For purpose of web service.
     */
    public void setUsername(String username) {
        this.username = username;
    }
}
